package com.jt.service;

import com.jt.mapper.LogMapper;
import com.jt.pojo.OperationLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class LogServiceImpl implements LogService{

    @Autowired
    private LogMapper logMapper;

    @Async
    @Override
    public void insertLog(OperationLog log) {
        logMapper.insert(log);
    }
}
